package de.klenkse.eclipse.ftpsync.model;

import org.eclipse.core.resources.IResource;

/**
 * A single configuration entry.
 */
public class FTPConfigEntry {
	/**
	 * The server name.
	 */
	private String serverName;
	/**
	 * The user name.
	 */
	private String userName;
	/**
	 * The base path of synchronization on the server.
	 */
	private String basePath;
	/**
	 * The password.
	 */
	private String password;
	/**
	 * The base resource.
	 */
	private IResource syncBase;

	/**
	 * The constructor.
	 */
	public FTPConfigEntry(String server, String user, String base,
			String password, IResource sync) {
		serverName = server;
		userName = user;
		basePath = base;
		this.password = password;
		syncBase = sync;
	}

	/**
	 * Default constructor.
	 */
	public FTPConfigEntry() {
		// nothing to do.
	}

	/**
	 * Set base path.
	 */
	public void setBasePath(String basePath) {
		this.basePath = basePath;
	}

	/**
	 * Set password.
	 */
	public void setPassword(String password) {
		this.password = password;
	}

	/**
	 * Set Server name.
	 */
	public void setServerName(String serverName) {
		this.serverName = serverName;
	}

	/** Set sync base. */
	public void setSyncBase(IResource syncBase) {
		this.syncBase = syncBase;
	}

	/** Set user name. */
	public void setUserName(String userName) {
		this.userName = userName;
	}

	/** Get base path. */
	public String getBasePath() {
		return basePath;
	}

	/** Get password. */
	public String getPassword() {
		return password;
	}

	/** Get server name. */
	public String getServerName() {
		return serverName;
	}

	/** Get sync base. */
	public IResource getSyncBase() {
		return syncBase;
	}

	/** Get user name. */
	public String getUserName() {
		return userName;
	}
}
